#pragma once
#include <qwidget.h>


class TempDisplayInfo
{
public:
	QString name;
	QString strContent;
	uint displayType;
	QList<QPointF> pList;
};



class TMPAreaDisplay :
    public QWidget
{
	Q_OBJECT

public:
	TMPAreaDisplay(QWidget* parent = Q_NULLPTR);
	~TMPAreaDisplay();
	void saveCurrentPaintingInfo();
	void addTMPArea(QString name, QString content, int type, QList<QPointF>& pointfList);
signals:
	void handle3dZoom(QRect rect);
protected:
protected:
	void mouseMoveEvent(QMouseEvent* event);
	//void resizeEvent(QResizeEvent* event);
	void mousePressEvent(QMouseEvent* event);
	void mouseReleaseEvent(QMouseEvent* event);
	void mouseDoubleClickEvent(QMouseEvent* event);
	void paintEvent(QPaintEvent* event);
	virtual void enterEvent(QEvent* e);
	virtual void leaveEvent(QEvent* e);
public:
	
	QList<TempDisplayInfo> listPaintInfo;

	TempDisplayInfo currentPaintingInfo;
	QPoint currentMouseP;
	bool isPainting;
	bool mouseDown;
};

